/**
 * 生产appId
 * 1. 小锦鲤抽奖 —— wxeb563141edf8005b
 * 2. 活动小抽奖 —— wxb377a7ee7771d9ad
 * PS：如果提交的是1，则将prod中的appid改为1，提交的是2，同理
 */
var extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}

const config = {
  dev: {
    "mode": 'dev',
    "appid": "wxfa3bc351f4d768ae",
    "buildVersion": "1.0",
    "oauthKey": "123456",
    "pageDomain": "http://192.168.168.123:8080",
    "staticResPath": "http://newgametest.weijuju.com/res/lottery",
    "userImagePath": "http://imgcdn.youyu.weijuju.com",
    "secretKey": "huaer_yy_20180515",
    "qiniuRegionCode": "ECN"
  },
  prod: {
    "mode": 'prod',
    "appid": "wxfa3bc351f4d768ae",
    "buildVersion": "1.0",
    "oauthKey": "123456",
    "pageDomain": extConfig.pageDomain,
    "staticResPath": extConfig.downLoadResPath + '/huiketui/youyu',
    "userImagePath": extConfig.downLoadUploadPath,
    "secretKey": "huaer_yy_20180515",
    "qiniuRegionCode": "ECN"
  },
  test: {
    "mode": 'test',
    "appid": "wxdd087590f461dfde",
    "buildVersion": "1.0",
    "oauthKey": "123456",
    "pageDomain": "https://simplegame.weijuju.com/",
    "staticResPath": "http://xcxtest.weijuju.com/res/yyxiaochengxu/huiketui/youyu",
    "userImagePath": "http://imgcdn.youyu.weijuju.com",
    "secretKey": "huaer_yy_20180515",
    "qiniuRegionCode": "SCN"
  }
}
if (extConfig.dev){
  module.exports = config['test']
}else{
  module.exports = config['test']
}

